﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WindowsFormsApplication2.Controls;

namespace WindowsFormsApplication2
{
    public partial class TexturesTestingPanel : Form
    {
        DatabaseModificationsUserControl databaseMoificationsUserControl = new DatabaseModificationsUserControl();
        ModifyWebConfigUserControl modifyWebConfigUserControl = new ModifyWebConfigUserControl();
        EditConnectionStringFileUserControl editConnectionStringFileUserControl = new EditConnectionStringFileUserControl();

        public TexturesTestingPanel()
        {
            InitializeComponent();
            //DatabaseModificationsUserControl databaseMoificationsUserControl = new DatabaseModificationsUserControl();
            //ModifyWebConfigUserControl modifyWebConfigUserControl = new ModifyWebConfigUserControl();
            //EditConnectionStringFileUserControl editConnectionStringFileUserControl = new EditConnectionStringFileUserControl();
            Controls.Add(databaseMoificationsUserControl);
            Controls.Add(modifyWebConfigUserControl);
            Controls.Add(editConnectionStringFileUserControl);
            databaseMoificationsUserControl.Visible = false;
            modifyWebConfigUserControl.Visible = false;
            editConnectionStringFileUserControl.Visible = false;
        }

        private void modifyWebconfigToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ModifyWebConfig modifyWebConfig = new ModifyWebConfig();
            modifyWebConfig.ShowDialog();
        }

        private void modifyTexturesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Database_modyfication Database_modyfication = new Database_modyfication();
            Database_modyfication.ShowDialog();
        }

        private void modifyWebconfig2ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.databaseMoificationsUserControl.Visible = false;
            this.editConnectionStringFileUserControl.Visible = false;
            this.modifyWebConfigUserControl.Visible = true;
        }

        private void modifyTexturesDatabase2ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.modifyWebConfigUserControl.Visible = false;
            this.editConnectionStringFileUserControl.Visible = false;
            this.databaseMoificationsUserControl.Visible = true;
        }

        private void editConnectionStringToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.modifyWebConfigUserControl.Visible = false;
            this.databaseMoificationsUserControl.Visible = false;
            this.editConnectionStringFileUserControl.Visible = true;
        }

        private void button1_Click(object sender, EventArgs e)
        {
           
        }
    }
}
